package com.wunong.smart.address.client.param;

import com.wunong.smart.address.client.vo.UserAddressVO;
import com.wunong.smart.domain.platform.common.BaseParam;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * 用户地址
 *
 * @author create by zealot.zt
 */
@Getter
@Setter
@ToString(callSuper = true)
public class UserAddressParam extends BaseParam {

    /**
     * 用户地址信息
     */
    @NotNull(message = "用户地址必填")
    @Valid
    private UserAddressVO addressVO;

    public static UserAddressParam of() {
        return new UserAddressParam();
    }

}
